<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=2.0,user-scalable=0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
    <title>AI-Chat</title>
    <link rel="stylesheet" href="/openai/css/highlight.css">
    <link rel="stylesheet" href="/openai/css/tailwind.css">
    <link rel="stylesheet" href="/openai/css/loading.css">
</head>

<body>
<style>
    [contenteditable]:focus {
        outline: none;
    }

    ol li {
        list-style: decimal;
    }

    ul li {
        list-style-type: circle;
    }

    .markdown ol {
        counter-reset: item;
    }

    .markdown ol,
    .markdown ul {
        display: flex;
        flex-direction: column;
        padding-left: 1rem;
    }

    .markdown {
        max-width: none;
        background-color: transparent;
    }

    .markdown pre {
        background-color: rgba(17, 24, 39, 1);
    }

    .prose :where(pre):not(:where([class~=not-prose] *)) {
        background-color: transparent;
        border-radius: .375rem;
        color: currentColor;
        font-size: .875em;
        font-weight: 400;
        line-height: 1.7142857;
        margin: 0;
        overflow-x: auto;
        padding: 0;
    }

    /* 设置滚动条的样式 */
    ::-webkit-scrollbar {
        width: 8px; /* 滚动条的宽度 */
    }
    /* 设置滚动条的轨道背景样式 */
    /* ::-webkit-scrollbar-track {
      background-color: #f1f1f1;
    } */
    /* 设置滚动条的滑块样式 */
    ::-webkit-scrollbar-thumb {
        background-color: #d1cccc; /* 滑块颜色 */
        border-radius: 5px;
    }
    /* 设置滚动条的滑块在悬停状态时的样式 */
    ::-webkit-scrollbar-thumb:hover {
        background-color: #555; /* 悬停状态下的滑块颜色 */
    }

</style>
<div class="flex w-full h-full overflow-hidden">
    <div class="hidden">手机型号进行的展示内容</div>

    <div class="dark flex-shrink-0 bg-gray-900 w-64 text-white hidden">
        <div class="h-full">暂未开放，敬请期待</div>
    </div>
    <div class="flex-1 relative overflow-hidden">
        <div class="" style="
            height: 100vh;
            overflow-y: auto;
            padding-bottom: 180px;
            box-sizing: border-box;
          " id="messageContent">

            <div class="text-center" id="showHiden">
                <div class="md:max-w-2xl mx-auto h-40 md:h-60 flex items-center justify-center">
                    <h1 class="text-4xl">AI-Chat</h2>
                </div>
                <div class="justify-around md:flex  w-10/12   md:items-stretch  gap-3  mx-auto md:max-w-2xl ">
                    <div class="flex flex-col gap-2 mb-8">
                        <div class="flex justify-center gap-2">

                            <div><svg t="1688305180599" class="icon" viewBox="0 0 1024 1024" version="1.1"
                                      xmlns="http://www.w3.org/2000/svg" p-id="1526" xmlns:xlink="http://www.w3.org/1999/xlink"
                                      width="24" height="24">
                                <path
                                        d="M834.221 448.216v-243.27H537.582v-79.243H277.687l-87.377 76.619v245.895h-63.142v342.375c0 57.962 47.916 105.117 106.812 105.117H791.14c58.897 0 106.814-47.155 106.814-105.117V448.216H834.22z m-51.165-192.104v192.104h-47.017V256.112h47.017z m-98.183 0v192.104H636.25V256.112h48.623z m-146.805 0h47.017v192.104h-47.017V256.112z m-296.592-30.607l0.458-0.401h55.443v-48.237h189.04v271.35h-244.94V225.504z m605.312 565.086c0 29.749-24.964 53.952-55.648 53.952H233.982c-30.684 0-55.648-24.202-55.648-53.952v-291.21h668.453v291.21z"
                                        p-id="1527" fill="#8a8a8a"></path>
                                <path
                                        d="M353.52 751.962h318.083V591.963H353.52v160z m51.165-108.833h215.752v57.668H404.685v-57.668z"
                                        p-id="1528" fill="#8a8a8a"></path>
                            </svg></div>
                            <div>例子</div>
                        </div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">大象的鼻子为什么会喷水呢？</div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">请写一首赞美秋天的古诗</div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">给10岁孩子过生日有什么创意吗？</div>
                    </div>
                    <div class="flex flex-col gap-2 mb-8">
                        <div class="flex justify-center gap-2">
                            <div><svg t="1688305378158" class="icon" viewBox="0 0 1024 1024" version="1.1"
                                      xmlns="http://www.w3.org/2000/svg" p-id="4620" xmlns:xlink="http://www.w3.org/1999/xlink"
                                      width="24" height="24">
                                <path
                                        d="M513.3 239.9c-73.5 0-142.6 28.6-194.6 80.6-52 52-80.6 121.1-80.6 194.6s28.6 142.6 80.6 194.6c52 52 121.1 80.6 194.6 80.6s142.6-28.6 194.6-80.6c52-52 80.6-121.1 80.6-194.6s-28.6-142.6-80.6-194.6c-52-52-121.1-80.6-194.6-80.6z m0 482.3c-114.2 0-207.2-92.9-207.2-207.2S399 307.8 513.3 307.8c114.2 0 207.2 92.9 207.2 207.2s-92.9 207.2-207.2 207.2zM637.9 803.6H388.7c-18.8 0-34 15.2-34 34s15.2 34 34 34h249.2c18.8 0 34-15.2 34-34s-15.2-34-34-34zM588.1 885H438.6c-18.8 0-34 15.2-34 34s15.2 34 34 34h149.5c18.8 0 34-15.2 34-34s-15.2-34-34-34zM513.3 227.5c18.8 0 34-15.2 34-34V97c0-18.8-15.2-34-34-34s-34 15.2-34 34v96.5c0 18.7 15.2 34 34 34zM701.3 276.9c5.9 4.2 12.7 6.2 19.5 6.2 10.7 0 21.3-5.1 27.9-14.5l55.3-79c10.8-15.4 7-36.6-8.3-47.4-15.4-10.8-36.6-7-47.4 8.3l-55.3 79c-10.8 15.4-7.1 36.6 8.3 47.4zM938 357.6c-6.6-17.6-26.2-26.5-43.8-19.9l-90.4 33.8c-17.6 6.6-26.5 26.2-19.9 43.8 5.1 13.7 18.1 22.1 31.9 22.1 4 0 8-0.7 11.9-2.2l90.4-33.8c17.6-6.6 26.5-26.2 19.9-43.8zM283.4 252.5c6.6 9.4 17.2 14.5 27.9 14.5 6.7 0 13.5-2 19.5-6.2 15.4-10.8 19.1-32 8.3-47.4l-55.3-79c-10.8-15.4-32-19.1-47.4-8.3-15.4 10.8-19.1 32-8.3 47.4l55.3 79zM248.1 399.1c6.6-17.6-2.4-37.2-19.9-43.8l-90.4-33.8c-17.6-6.6-37.2 2.4-43.8 19.9-6.6 17.6 2.4 37.2 19.9 43.8l90.4 33.8c3.9 1.5 7.9 2.2 11.9 2.2 13.8 0 26.8-8.4 31.9-22.1z"
                                        fill="#8a8a8a" p-id="4621"></path>
                            </svg></div>
                            <div>有趣提问</div>
                        </div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">AI有没有梦想？</div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">AI会替代人类吗？</div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">人工智能可以为我们做什么？</div>
                    </div>
                    <div class="flex flex-col gap-2 ">
                        <div class="flex justify-center gap-2">
                            <div><svg t="1688305456811" class="icon" viewBox="0 0 1024 1024" version="1.1"
                                      xmlns="http://www.w3.org/2000/svg" p-id="5959" xmlns:xlink="http://www.w3.org/1999/xlink"
                                      width="24" height="24">
                                <path
                                        d="M249.992533 861.3888a27.306667 27.306667 0 0 1-17.885866-6.144A439.227733 439.227733 0 0 1 439.9104 83.012267a27.306667 27.306667 0 0 1 8.874667 53.521066 384.6144 384.6144 0 0 0-181.4528 676.522667 27.306667 27.306667 0 0 1-17.339734 48.3328zM579.584 949.998933a27.306667 27.306667 0 0 1-4.369067-54.613333 384.6144 384.6144 0 0 0 181.4528-675.84A27.306667 27.306667 0 0 1 791.893333 177.493333a439.227733 439.227733 0 0 1-207.803733 772.096z"
                                        fill="#bfbfbf" p-id="5960"></path>
                                <path
                                        d="M407.278933 926.788267a27.306667 27.306667 0 0 1-27.306666-30.72l44.373333-354.986667-171.485867-2.048a27.306667 27.306667 0 0 1-20.0704-45.4656l365.909334-409.6a27.306667 27.306667 0 0 1 47.5136 21.572267l-44.373334 354.986666 171.485867 2.048a27.306667 27.306667 0 0 1 20.0704 45.4656l-365.909333 409.6a27.306667 27.306667 0 0 1-20.206934 9.147734zM314.026667 484.829867l141.994666 1.774933a27.306667 27.306667 0 0 1 27.306667 30.72l-38.0928 298.5984 267.741867-300.373333-141.994667-1.774934a27.306667 27.306667 0 0 1-27.306667-30.72l37.2736-298.5984z"
                                        fill="#bfbfbf" p-id="5961"></path>
                            </svg></div>
                            <div>局限性</div>
                        </div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">有时可能会生成不正确的信息</div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">偶尔可能会产生有害的指令或有偏见的内容</div>
                        <div class="p-3 bg-gray-200 rounded-md hover:bg-gray-300">对 2021 年之后的世界和事件了解有限</div>
                    </div>
                </div>
            </div>

        </div>

        <!-- 输入框表单 -->
        <div
                class="absolute bottom-0 left-0 w-full border-t md:border-t-0 dark:border-white/20 md:border-transparent md:dark:border-transparent md:bg-vert-light-gradient bg-white dark:bg-gray-800 md:!bg-transparent dark:md:bg-vert-dark-gradient pt-2">
            <form onsubmit="return false"
                  class="stretch mx-2 flex flex-row gap-3 last:mb-2 md:mx-4 md:last:mb-6 lg:mx-auto lg:max-w-2xl xl:max-w-3xl">
                <div class="relative flex h-full flex-1 items-stretch md:flex-col">
                    <div class="">
                        <div class="h-full flex ml-1 md:w-full md:m-auto md:mb-2 gap-0 md:gap-2 justify-center"></div>
                    </div>
                    <div
                            class="flex flex-col w-full py-2 flex-grow md:py-3 md:pl-4 relative border border-black/10 bg-white dark:border-gray-900/50 dark:text-white dark:bg-gray-700 rounded-md shadow-[0_0_10px_rgba(0,0,0,0.10)] dark:shadow-[0_0_15px_rgba(0,0,0,0.10)]">
              <textarea id="prompt-textarea" oninput="getInput()" tabindex="0" data-id="root" rows="1"
                        onfocus="getFocus()" placeholder="Send a message..."
                        class="m-0 w-full resize-none border-0 bg-transparent p-0 pr-7 focus:ring-0 focus-visible:ring-0 dark:bg-transparent pl-2 md:pl-0"
                        style="max-height: 160px;outline: none;overflow-y: auto;"></textarea>
                        <button id="submit" onclick="submitMessage()"
                                class="  absolute p-1 rounded-md   md:bottom-3 md:right-3  right-2 text-gray-400  bg-brand-purple text-white transition-colors disabled:opacity-40"
                                style="width:24px ;height:24px" disabled>
                <span data-state="closed"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"
                                               class="h-4 w-4" stroke-width="2">
                    <path
                            d="M.5 1.163A1 1 0 0 1 1.97.28l12.868 6.837a1 1 0 0 1 0 1.766L1.969 15.72A1 1 0 0 1 .5 14.836V10.33a1 1 0 0 1 .816-.983L8.5 8 1.316 6.653A1 1 0 0 1 .5 5.67V1.163Z"
                            fill="currentColor"></path>
                  </svg></span>
                        </button>

                        <div id="loading"
                             class=" hidden absolute p-1 rounded-md  sm:bottom-3 sm:p-2 sm:right-3 md:bottom-3 md:p-2 md:right-3  right-2 animate-spin "
                             style=" width: 24px;height: 24px; border:1px solid #f3f3f3;
                border-radius:50%;
                border-top:1px solid #1fe229;">

                        </div>

                    </div>
                </div>
            </form>
            <div class="px-3 pb-3 pt-2 text-center text-xs text-gray-600 dark:text-gray-300 md:px-4 md:pb-6 md:pt-3">
                <span>欢迎使用AI-Chat</span> <a style="color:blue" href="/kefu">人工客服</a>
            </div>
        </div>
    </div>
</div>

<script th:inline="javascript">
    let user = [[${user}]];
</script>
<script src="/openai/js/jquery.min.js"></script>
<script src="/openai/js/jquery.cookie.min.js"></script>
<script src="/openai/js/layer.min.js"></script>
<script src="/openai/socket/socket.io.js"></script>
<script src="/openai/js/loading.js"></script>
<script src="/openai/highlight/highlight.min.js"></script>
<script src="/openai/js/marked.js"></script>
<script src="/openai/js/chat.js"></script>
</body>

</html>
